var vue = new Vue({
   el:"#demodiv",
   data:{
        text:"",
       dataList:[
           {
               "id":"01",
               "name":"梁潇"
           },
           {
               "id":"02",
               "name":"王充"
           }
       ],
       sl:""
   },
   methods:{
       cg:function () {
           alert(this.sl);
       },
       dw:function () {
           alert("ok");
       },
       init:function () {
           alert("初始化");
       }
   },
   mounted:function () {
    this.init();
   }
});